cmake_minimum_required(VERSION 3.5)

set(PRJ test_cpython)
project(${PRJ})

set(${CMAKE_CXX_FLAGS} "${CMAKE_CXX_FLAGS} -pthread -ggdb -l")

find_package(Python COMPONENTS Interpreter Development)
if(Python_FOUND)
	message("PYTHON_INCLUDE_DIR = " ${Python_INCLUDE_DIRS})
	message("Python_LIBRARIES = " ${Python_LIBRARIES})
	include_directories(${Python_INCLUDE_DIRS})
else()
	message("Python not found")
endif()

include_directories(python_include)
#link_directories(${PROJECT_SOURCE_DIR})
add_executable(${PRJ} main.cpp)
target_link_libraries(${PRJ} PUBLIC ${Python_LIBRARIES})

